//
//  BHCommonSortTypeModel.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/8/12.
//

import UIKit

class BHCommonSortTypeModel {
    var typeId: String = ""
    var text: String = ""
    var parentId: String = ""
    var parentValue: String = ""
    
    
    // 本地添加
    var childArray: [BHCommonSortTypeModel] = []
    var areaArray: [BHHomeCityModel] = [] // 赛事筛选的时候根据城市名获取区
    
    
    func parseDic(_ dic: [String:Any]) {
        self.typeId = BHJsonTool.decodeStringFromDic(dic: dic, key: "id")
        self.text = BHJsonTool.decodeStringFromDic(dic: dic, key: "motionTypeLabel")
        self.parentId = BHJsonTool.decodeStringFromDic(dic: dic, key: "parentId")

    }
}
